package com.briup.ch11;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/15
 * @Description:
 */
public class Test8 {
    public static void main(String[] args) throws IOException {
        InputStream in = new FileInputStream("test.txt");
        byte[] buffer = new byte[1024];
        int len = 0;
        while ((len = in.read(buffer))!= -1) {

            System.out.println(Arrays.toString(buffer));

        }
        in.close();


    }
}
